<template lang="html">
  <Panel title="轮播图" :class="$style.panel">
    <section :class="$style.content">
      <Slider :items="items" :cname="$style.slider" />
      <div :class="$style.sign">
          <div :class="$style.member">会员等级</div>
          <div :class="$style.main">立即登录，马上赚钱</div>
          <div :class="$style.login">签到</div>

      </div>
    </section>
    <section :class="$style.list">
      <div :class="$style.item" v-for="item in enters" :key="item.img">
      <router-link :to="{ name: item.href }">
        <img :src="item.img" :alt= "item.title">
          <h4>{{item.title}}</h4>
        </img>
      </router-link>
      </div>
    </section>
  </Panel>
</template>

<script>
import Panel from "../core/panel.vue"
import Slider from "../core/slider.vue"
export default {
  components: {
    Panel,
    Slider,
  },
  data() {
    return {
      items: [{
          href: "Home",
          src: "//img12.360buyimg.com/jrpmobile/jfs/t1/24150/11/2262/34198/5c1b0bd5E34fa892f/054c0bf91c3bcb76.jpg?width=750&height=400"
        },
        {
          href: "Home",
          src: "//img12.360buyimg.com/jrpmobile/jfs/t1/20317/19/9235/129533/5c7cb47aEedbdd8ee/1c8891785c20bf48.jpg?width=750&height=400"
        },
        {
          href: "Home",
          src: "//img12.360buyimg.com/jrpmobile/jfs/t1/10417/12/14059/132199/5c85b9beE945f7162/8b5f01aed40f1725.jpg?width=750&height=400"
        },
        {
          href: "Home",
          src: "//img12.360buyimg.com/jrpmobile/jfs/t1/10269/23/13597/54795/5c820caaE075c87c5/49bd5c51d63b1034.jpg?width=750&height=400"
        },
      ],
      enters: [{
          href: "Home",
          img: "//img12.360buyimg.com/jrpmobile/jfs/t28189/232/289098066/5076/dfe2d74f/5bee6bb4N4ec4cede.png?width=90&height=90",
          title: "领红包"
        }, {
          href: "Home",
          img: "//img12.360buyimg.com/jrpmobile/jfs/t27334/12/1829630702/5159/f8133cd6/5bee6bbdN8606cfbb.png?width=90&height=90",
          title: "领福利"
        },
        {
          href: "Home",
          img: "//img12.360buyimg.com/jrpmobile/jfs/t27796/46/1836066448/4169/de69ccb0/5bee6bc3N92ca0e60.png?width=90&height=90",
          title: "领券"
        },
        {
          href: "Home",
          img: "//img12.360buyimg.com/jrpmobile/jfs/t27850/30/1789047580/4856/13f8bcb9/5bee6bcbN996fb433.png?width=90&height=90",
          title: "领京豆"
        },
        {
          href: "Home",
          img: "//img12.360buyimg.com/jrpmobile/jfs/t29131/288/288291507/3943/bed46aef/5bee6bd5Nfc5d5360.png?width=90&height=905",
          title: "全部"
        },

      ],
    }
  }
}
</script>

<style lang="scss" module>
@import "../../css/element.scss";
.panel {
    @include panel;
    > h4 {
        display: none;
    }
    .content {
        height: 440px;
        .slider {
            margin-top: 100px;
            img {
                width: 100%;
            }
        }
        .sign {
            @include flex(row);
            margin: 0 16px;
            background: #fff;
            box-shadow: 0 0 10px 0.5px rgba(101,118,155,.15);
            border-radius: 4px;
            height: 120px;
            line-height: 120px;
            position: relative;
            z-index: 3;
            .member {

                color: #fff;
                height: 66px;
                line-height: 66px;
                font-size: 25px;
                margin-top: 20px;
                margin-left: 20px;
                border-radius: 2px;
                background: url("") 50% no-repeat;
                background-size: cover;
                box-shadow: 0 3px 4px 0 hsla(41,44%,63%,.51);
            }
            .main {
                font-family: PingFangSC-Semibold;
                font-size: 28px;
                color: #c6a76f;
                letter-spacing: 0;
                line-height: 130px;
                text-align: left;
                padding-left: 20px;
                box-sizing: border-box;
            }
            .login {
                position: absolute;
                right: 30px;
                width: 140px;
                height: 66px;
                line-height: 66px;
                color: #fff;
                text-align: center;
                font-size: 24px;
                margin-top: 20px;
                background: orange;
                border-radius: 30px;
                background: url("") 50% no-repeat;
                background-size: cover;
                box-shadow: 0 8px 12px 0 hsla(40,41%,61%,.41);
            }
        }
    }
    .list {
        @include list(row);
        background: #fff;
        padding-top: 40px;
        padding-bottom: 20px;
        justify-content: space-around; //两端对齐
        a {
            text-decoration: none;
        }
        .item {

            text-align: center;
            img {
                margin: 10px 20px;
                display: inline-block;
                width: 80px;
                height: 80px;
            }
            h4 {
                font-size: 26px;
                margin-top: 12px;
                color: #666;
            }
        }
    }
}
</style>
